package webgraph;

import java.util.*;

public class gnode {
	
	private LinkedList<gedge> eList;
	private String url;
	
	public gnode(String url){
		this.url = url;
		this.eList = new LinkedList<gedge>();
	}
	
	public void addConnection(gedge e){
		this.eList.add(e);
	}
	
	public int getNumNeighbors(){
		return this.eList.size();
	}
	
	public String getURL(){
		return this.url;
	}
	
	public LinkedList<gedge> getEList(){
		return this.eList;
	}
	
	public void removeNeighbor(String url){
		//find the node in the edge list which has this url and remove it.
	}
	
}
